package service.impl;

import dao.BaseDao;
import dao.ComputerRoomDao;
import dao.impl.ComputerRoomDaoImpl;
import entity.ComputerRoom;
import service.ComputerRoomService;

import java.util.List;

public class ComputerRoomServiceImpl extends BaseDao implements ComputerRoomService {
    ComputerRoomDao computerRoomDao = new ComputerRoomDaoImpl();

    @Override
    public List<ComputerRoom> computerList() {
        return computerRoomDao.computerList();
    }

    @Override
    public int computerAdd(ComputerRoom computerRoom) {
        return computerRoomDao.computerAdd(computerRoom);
    }

    @Override
    public int computerDelete(int id) {
        return computerRoomDao.computerDelete(id);
    }
}
